<template>
  <div class="DailyUse">
    <div class="DailyUse_header">
      <div class="DailyUse_header1">
        <span v-for="(item, index) in list" :key="index">
          {{ item.relationName }}
        </span>
      </div>
    </div>
  </div>
</template>

<script>
import { lifeContent } from "../server";
export default {
  data() {
    return {
      list: [],
    };
  },
   onLoad() {},
   methods: {},
   async created() {
    let result =await lifeContent();
    if (result.retcode == 0) {
        this.list =result.result[4].lifeModuleConfigRelationDTOS;
    }
  },
};
</script>

<style scoped lang="scss">
.DailyUse {
  width: 100%;
  background-color: rgb(245, 245, 245);
  .DailyUse_header {
    width: 100%;
    height: 100rpx;
    line-height: 100rpx;
    overflow-x: scroll;
    .DailyUse_header1{
        width: 160%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        >span{
            display:inline-block;
            padding: 10rpx 15rpx;
        }
    }
  }
}
.active{
  border-bottom: 1rpx solid #000;
}
</style>
